package com.example.a1.fannong.ui.shoppingcart;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.a1.fannong.R;
import com.example.a1.fannong.core.app.BaseActivity;

import cn.personal.library.viewinject.OnClick;
import cn.personal.library.viewinject.ViewInjecter;

public class PlaceOrderActivity extends BaseActivity {

//    @FindViewById(R.id.address_list)
//    private PullRefreshView pullRefreshView;
//    @FindViewById(R.id.top_bar)
//    private MyActionBar myActionBar;
//    @FindViewById(R.id.newaddress_bt)
//    private Button mNewAddressTv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_place_order);
        ViewInjecter.inject(this);
    }

    @OnClick({R.id.address_layout,R.id.js_bt})
    public void onItemClick(View view) {
        switch (view.getId()) {
            case R.id.address_layout:
                startActivity(SelectAddressActivity.class);
                break;
            case R.id.js_bt:
                startActivity(PaymentActivity.class);
                break;
        }
    }

    public static void startActivity(Context context) {
        Intent intent = new Intent(context, PlaceOrderActivity.class);
        context.startActivity(intent);
    }
}
